import { postRequest, getRequest } from "./request";
// 获取学校信息
export const clazz = {
  detail: (params) => getRequest("/api/clazz/detail", params),
  schoolInfo: (params) => getRequest("/api/clazz/schoolInfo", params),
  device: {
    detail: (params) => getRequest("/api/clazz.device/detail", params),
  },
  article: {
    lists: (params) => getRequest("/api/clazz.article/lists", params),
    detail: (params) => getRequest("/api/clazz.article/detail", params),
  },
  room: {
    getClassRoomInfo: (params) =>
      getRequest("/api/clazz.room/getClassRoomInfo", params),
  },
  schedule: {
    getLessonByRoom: (params) =>
      getRequest("/api/clazz.schedule/getLessonByRoom", params),
  },
};

export const attendance = {
  punch: (params) => postRequest("/api/attendance/punch", params, false),
};
